<script>
    document.getElementById('demo').onclick = function () {
      console.log('单击');
    };
  </script>
  <div id="demo">测试</div>
  <p><a href="第八章作业.html">返回</a></p>